package com.example.demo.design.decorator.solution;

/**
 * @Author: liull
 * @Description:
 * @Date: Created in 15:33 2020/12/24
 * @Modified By:
 */
public class ComponentDecorator extends Component {

    private Component component;

    public ComponentDecorator(Component component) {
        this.component = component;
    }

    @Override
    public void display() {
        component.display();
    }
}
